package cz.cvut.manatee.client.concordance;

public interface SearchWidgetManagementInterface<T extends ConcordanceFormWidget> {
	
	/**
	 * Posune formular o jeden nahoru (k vrchu obrazovky).
	 */
	public void moveUp(SearchWidgetWrapper<T> item);
	
	/**
	 * Posune formular o jeden dolu (ke spodku obrazovky).
	 */
	public void moveDown(SearchWidgetWrapper<T> item);
	
	/**
	 * Odstrani formular.
	 */
	public boolean remove(SearchWidgetWrapper<T> item);
	
	
	
	public boolean remove(int index);
	
	
	
	/**
	 * Pozice v ArrayList (0 az n-1).
	 * 
	 * @return the int
	 */
	public int position(SearchWidgetWrapper<T> item);
	
	/**
	 * Pocet vsech prvku v ArrayListu.
	 * 
	 * @return the int
	 */
	public int size();
	
	
	public void render();
	
	
	public void refresh();
	
	
	public boolean add(T newitem);
}
